<?php
namespace Admin\Controller;

use Think\Controller;

/*文件上传保存根目录*/
define('FileRootPath', "./Uploads");

/*图片上传目录*/
define('FilePath', "/file/");

class BaseController extends Controller
{
    public function _initialize()
    {
        $sid = session('adminId');
        //判断用户是否登陆
        if (!isset($sid)) {
            redirect(U('Login/index'));
        }

    }

}